package com.carl.zlds.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carl.zlds.dao.sqlprovider.BlackAccountSqlProvider;
import com.carl.zlds.model.BlackAccount;
import com.carl.zlds.pojo.dto.BlackAccountSearchDTO;
import com.carl.zlds.pojo.vo.BlackAccountVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @author carl
 */
public interface BlackAccountMapper extends BaseMapper<BlackAccount> {
    @SelectProvider(type = BlackAccountSqlProvider.class, method = "getBlackAccountList")
    List<BlackAccountVO> getBlackAccountList(@Param("dto") BlackAccountSearchDTO dto, @Param("limitSql") String limitSql);

    @SelectProvider(type = BlackAccountSqlProvider.class, method = "getBlackAccountList")
    Integer countBlackAccountList(@Param("dto") BlackAccountSearchDTO dto, @Param("limitSql") String limitSql);
}
